/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.sys.comment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.sys.comment.model.ShopMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单管理
 * @date 2021-03-01 17:42:09
 */
public interface ShopMenuMapper extends BaseMapper<ShopMenu> {

    List<ShopMenu> listMenuAndBtn(@Param("lang") Integer lang);

    List<ShopMenu> listSimpleMenuNoButton(@Param("lang") Integer lang);

    List<ShopMenu> listRootMenu(@Param("lang") Integer lang);

    List<ShopMenu> listChildrenMenuByParentId(@Param("parentId") Long parentId, @Param("lang") Integer lang);

    List<ShopMenu> listMenu(@Param("lang") Integer lang);

    List<ShopMenu> listMenuByEmployeeId(@Param("employeeId") Long employeeId, @Param("lang") Integer lang);

    List<Long> listMenuIdByRoleId(@Param("roleId") Long roleId);
}
